# Original credit: https://github.com/jpetazzo/dockvpn
# Modified from: https://github.com/kylemanna/docker-openvpn

# full features image
FROM ubuntu:20.04 

LABEL maintainer="Edward Zhu <zhuhy163@163.com>"

COPY . /app

RUN apt update && apt install -y build-essential zlib1g-dev \
libpcre3 libpcre3-dev openssl libssl-dev && \
cd /app && ./configure && make && make install

VOLUME ["/usr/local/nginx/conf"]

EXPOSE 80

WORKDIR "/usr/local/nginx"

CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]
